﻿using System;
using System.Net.Sockets;

namespace HDSmartCommunity.Models
{
    public class KoneDeviceInfo
    {
        public string DeviceName { get; set; }
        public string DeviceIP { get; set; }
        public int DevicePort { get; set; }
        public int Type { get; set; }
        public bool ConnectFlag { get; set; }
        public Socket socket { get; set; }
    }

    public class KoneInfo
    {
        public string DeviceName { get; set; }
    }

    public class CmdInfo
    {
        public string Cmd { get; set; }
        public string DeviceIP { get; set; }
        public int DevicePort { get; set; }
    }

    public class DeviceStatus
    {
        public string DeviceName { get; set; }
        public string DeviceIP { get; set; }
        public int DevicePort { get; set; }
        public int BatteryStatus { get; set; }//电池状态 0=其它；1=充电；2=逆变
        public int ChargeStatus { get; set; }//充电状态 0=其它；1=开始充电；2=充满；3=停止充电
        public int DisChargeStatus { get; set; }//逆变状态 0=其它；1=启动逆变；2=停止逆变;
        public string ChargeStartTime { get; set; }//充电开始时间
        public string DisChargeStartTime { get; set; }//逆变开始时间
        public string ChargeStopTime { get; set; }//充电结束时间
        public string DisChargeStopTime { get; set; }//逆变结束时间
        public int ChargeCount { get; set; }//充电次数

    }

    public class KoneBatteryCharge
    {
        public DateTime ChargeStartTime { get; set; }
        public string BatteryVoltage { get; set; }
        public string FaultCode { get; set; }
        public DateTime CreateDateTime { get; set; }
    }
    public class KoneBatteryDisCharge
    {
        public DateTime DisChargeStartTime { get; set; }
        public string BatteryVoltage { get; set; }
        public string FaultCode { get; set; }
        public DateTime CreateDateTime { get; set; }
    }
}
